home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Family Forum 259
/
IND_GIANT.BIN
/
Xtras
/
Animation Wizard.dir
/
00012_Script_Function
< prev
next >
Wrap
Text File
|
1997-05-10
|
1KB
|
41 lines
-- Function script
property iFunctionNameList
property ioFunctionList
property iCurrentFunction
property ichTabs
on birth me
global goBanners
global goZooms
global goCredits
global goBullets
set iFunctionNameList = ["Banners", "Zooms", "Credits", "Bullets"]
set ioFunctionList = [goBanners, goZooms, goCredits, goBullets]
set iCurrentFunction = 1
set ichTabs = 2
return me
end birth
on mHit me
global goPlatform
set newFunction = HitWhoH(ichTabs, count(iFunctionNameList))
if newFunction = iCurrentFunction then
return -- clicked on the current function, don't do anything
end if
-- Send the current object a clean up message to say we're done with it
set oCurrent = getAt(ioFunctionList, iCurrentFunction)
mCleanup(oCurrent)
-- Finally, go to the appropriate frame of the new function
set iCurrentFunction = newFunction
set newFrameName = getAt(iFunctionNameList, iCurrentFunction)
go to frame (newFrameName & goPlatform)
end mHit